package com.xlh.virtualization.po;

import io.swagger.annotations.ApiModel;
import lombok.Data;

import javax.validation.constraints.NotNull;
import java.util.List;

/**
 * @author cheer
 */
@ApiModel("镜像分配参数")
@Data
public class ImageAllocationUpdatePO {

    @NotNull(message = "实验类型不能为空")
    private Integer mode;

    @NotNull(message = "镜像Id不能为空")
    private Long imageId;

    @NotNull(message = "cpu核数不能为空")
    private Integer cpu;

    @NotNull(message = "内存大小不能为空")
    private Integer ram;

    private List<Long> slaveImageIds;

    private Integer slaveCpu;

    private Integer slaveRam;
}
